<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <link rel="stylesheet" href="/css/bootstrap.css">
  <link rel="stylesheet" href="/css/bootstrap-theme.css">
  <script src="js/jquery-3.6.0.js" type="application/javascript"></script>
  <script src="js/bootstrap.min.js" type="application/javascript"></script>
  <!--    以上为外部导入的样式和js脚本-->
  <link rel="stylesheet" href="/css/profileCss.css">
  <title th:text="${question.title}"></title>
</head>
<body>
<div th:insert="navigation :: nav"></div>

<div class="container-fluid" id="box1">
  <div class="row">
    <div class="col-lg-9 col-md-12 col-sm-12">
      <span class="glyphicon glyphicon-list-alt btn-lg" aria-hidden="true"></span>
      <h3 style="display: inline-block" th:text="${question.title}"></h3>
      <br>
      <span class="text-color-999" th:text="'发起人：' + ${question.user.getName()} + '|'"></span>
      <span class="text-color-999" th:text="${question.getComment_count()} + '个浏览· 发布时间：' + ${#dates.format(question.getGmt_create(),'yyyy.MM.dd')}"></span>
      <hr class="col-lg-12 col-md-12 col-sm-12">
      <div class="col-lg-12 col-md-12 col-sm-12" th:text="${question.getDescription()}"></div>
      <hr class="col-lg-12 col-md-12 col-sm-12">
      <a style="display: block; color: #999999; font-size: 14px" th:href="@{'/publish/' + ${question.id}}" th:if="${question.creator == session.user.getAccountId()}"><span class="glyphicon glyphicon-pencil">编辑</span></a>
    </div>
    <div class="col-lg-3 col-md-12 col-sm-12">
      <div class="col-lg-12 col-md-12 col-sm-12">
        <h4>发起人</h4>
        <img th:src="${question.user.avatar_url}" class="img-circle" width="100px">
        <h4 style="display: inline-block; margin-left:15px" th:text="${question.user.getName()}"></h4>
      </div>
      <div style="text-align: center;margin-left: 10px" class="col-lg-12 col-md-12 col-sm-12"><hr class="col-lg-10 col-md-10 col-sm-10"></div>
      <div class="col-lg-12 col-md-12 col-sm-12">
        <h4>相关问题</h4>
      </div>
    </div>
  </div>
</div>
</body>
</html>